package com.corechina.apex_osswords.domain.vo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.time.LocalDate;
import java.time.LocalDateTime;

/**
 * <p>
 * 设备表
 * </p>
 *
 * @author cc
 * @since 2022-12-09
 */
@Getter
@Setter
@TableName("core_equipment")
@ApiModel(value = "CoreEquipmentVo对象", description = "设备表")
public class CoreEquipmentVo implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("设备编码")
    private String serialNumber;

    @ApiModelProperty("设备类型")
    private Integer type;

    @ApiModelProperty("名称")
    private String name;

    @ApiModelProperty("数量")
    private Integer quantity;

    @ApiModelProperty("品牌")
    private String brand;

    @ApiModelProperty("型号")
    private String model;

    @JsonFormat(pattern="yyyy-MM-dd",timezone = "GMT+8")
    @ApiModelProperty("安装时间")
    private LocalDate installDate;

    @JsonFormat(pattern="yyyy-MM-dd",timezone = "GMT+8")
    @ApiModelProperty("质保日期")
    private LocalDate qualityDate;

    @ApiModelProperty("备注")
    private String remake;

    @ApiModelProperty("所属项目")
    private Integer projectId;

    @ApiModelProperty("所在地点")
    private Integer place;

    @ApiModelProperty("创建时间")
    private LocalDateTime createTime;

    @ApiModelProperty("设备类型名称")
    private String typeName;

    @ApiModelProperty("项目名称")
    private String projectName;

    @ApiModelProperty("图片")
    private String image;

    @ApiModelProperty("ImageBase64")
    private String imageBase64;

    private Integer imageId;

    @ApiModelProperty("地点名称")
    private String placeName;

    @ApiModelProperty("服务对象名称")
    private String serviceName;

    @ApiModelProperty("详细地点")
    private String fullAddress;

    @ApiModelProperty("项目编码")
    private String projectSerialNumber;

    @ApiModelProperty("是否可以报修 0 否 1 是")
    private Integer canRepairs;

    @ApiModelProperty("报修次数")
    private Integer orderCount;

    @ApiModelProperty("巡检次数")
    private Integer pollingCount;


}
